how to convert epoch time to date in java

50

how to convert epoch time to date in java -

String formatted = dateTime.format(DateTimeFormatter.ofPattern("dd/MM/yyyy HH:mm:ss"));

Comments

Submit
0 Comments